
user_date=input('请输入日期')
year=user_date[0:4]
month=user_date[5:7]
day=user_date[8:10]
if month[0:1]==0:
    month=month[1]

if day[0:1]==0:
    day=day[1]

day_list=[31,29,31,30,31,30,31,31,30,31,30,31]
count_day=day

if int(year) %4==0 and int(year) % 100 != 0 or int(year) % 400 ==0:
    print(f'{year}是闰年')
    day_list[1]=29
else:
    day_list[1]=28


for i in range(m):
    count_day +=day_list[i]

print(f'是当年的第{count_day}天')


